﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Shared/default.master" AutoEventWireup="true" CodeFile="SingleShow.aspx.cs" Inherits="Pages_Comment_SingleShow" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<title>讨论区--5151团</title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<!--主体部分开始-->
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
        OldValuesParameterFormatString="original_{0}" SelectMethod="GetSinProQuestList" 
        TypeName="Tuan.BLL.Review">
        <SelectParameters>
           <asp:QueryStringParameter Name="ProductID" QueryStringField="pid" Type="Int32" />
        </SelectParameters>
    </asp:ObjectDataSource>
    <asp:ObjectDataSource ID="ObjectDataSource2" runat="server" 
        OldValuesParameterFormatString="original_{0}" SelectMethod="GetModel" 
        TypeName="Tuan.BLL.Products">
        <SelectParameters>
        <asp:QueryStringParameter Name="ProductID" QueryStringField="pid" Type="Int32" />
        </SelectParameters>
    </asp:ObjectDataSource>
<!--第一部分开始-->
<asp:DetailsView ID="dtvReview" runat="server" 
        DataSourceID="ObjectDataSource2" AutoGenerateRows="False">
    <Fields>
        <asp:TemplateField>
            <ItemTemplate>
    <div class="index_one_fx_big">
	<div class="index_one_fx">
		<h4>分享此产品：</h4>
		<ul><input name="msnqqtype" id="msnqqtype" type="hidden"  value="1" />
			<li class="msnqq" onclick="showmsnqq();" style="cursor:pointer">MSN/QQ</li>
			<li class="sina" onclick="shareFriend(23,'sina','<%# System.Web.HttpUtility.UrlEncode("http://5151tuan.com/pages/index.aspx?pid=")%><%#Eval("ProductID") %>','<%#  System.Web.HttpUtility.UrlEncode(Eval("ProductName").ToString()) %>')" style="cursor:pointer">微博</li>
			<li class="kaixin" onclick="shareFriend(23,'kaixin001','<%# System.Web.HttpUtility.UrlEncode("http://5151tuan.com/pages/index.aspx?pid=")%><%#Eval("ProductID") %>','<%# System.Web.HttpUtility.UrlEncode(Eval("ProductName").ToString()) %>')" style="cursor:pointer">开心</li>
			<li class="renren" onclick="shareFriend(23,'renren','<%# Eval("ProductID","http://www.5151tuan.com/pages/index.aspx?pid={0}") %>','<%# System.Web.HttpUtility.UrlEncode(Eval("ProductName").ToString()) %>')" style="cursor:pointer">人人</li>
			<li class="douban" onclick="shareFriend(23,'douban','<%# System.Web.HttpUtility.UrlEncode("http://5151tuan.com/pages/index.aspx?pid=")%><%#Eval("ProductID") %>','<%#  System.Web.HttpUtility.UrlEncode(Eval("ProductName").ToString()) %>')" style="cursor:pointer">豆瓣</li>
			
			<%--<li class="email" onclick="ShowSenMail(26,'<%# Eval("ProductName") %>');" style="cursor:pointer">Email</li>--%>
        </ul>
	</div>
	<div class="index_one_fx_zk" style="display:none" id="msnqq">
		<h4>您可以把下面的链接通过MSN/QQ发送给朋友</h4>
		<p><input name="msnqqvalue" id="msnqqvalue" type="text" class="index_input1" value='<%# Eval("ProductName") %>http://5151tuan.com'/><input name="提交" type="button" class="index_but1" value="复制" onclick="copy_code();"/></p>
	</div>
</div>
<div class="main2_big">
	<div class="main_l_big">
		<div class="l_top3"></div>
		<div class="l_area_big">
			<div class="blank10"></div>
			                    <div class="index_one_l_left_cont0">
				                    <em><%# Eval("NowPrice").ToString().TrimEnd('0').TrimEnd('.') %></em><span>
				                   <%# (DateTime.Parse(DateTime.Now.ToShortDateString()) >= Convert.ToDateTime(Eval("ShowDate")) && DateTime.Parse(DateTime.Now.ToShortDateString()) <= Convert.ToDateTime(Eval("EndDate").ToString())) ? string.Format("<a href=\"/Pages/buy/orderdetails.aspx?pid={0}\"><img src=\"/app_themes/ftuan/images/buy.gif\" alt=\"购买\" /></a>", Eval("ProductID")) : "<img src=\"/app_themes/ftuan/images/buyno.gif\" alt=\"产品已经下架，不能购买\" />"%></a>
				                    </span></div>
			                    <div class="index_top_right2"><a href='/pages/index.aspx?pid=<%# Eval("ProductID") %>'> <%# Eval("ProductName") %></a></div><%--
			<div class="index_one_l_left_cont0">
				 <em>48</em>								<span>
										<a href="/buy/36" target="_blank"><img src="/sites/all/themes/ftuan_theme/images/buy.gif" alt="购买" />  </a>
										</span>
							</div>
			<div class="index_top_right2">仅48元！原价548元。享受背部淋巴排毒SPA+草本海盐足浴各一次。远洋国际日月华美养生会所</div>--%><div class="blank10"></div>
		</div>
		<div class="l_bot3"></div>
	</div>
	<div class="main2_r">
			<!--邀请有礼 开始-->
		<div class="index_r_area">
			<h3 title="邀请有礼"><img src="/APP_themes/ftuan/images/r_nav1.gif" alt="邀请有礼" /></h3>
			<ul class="index_r_three">
				   <li class="index_r_three_top"><img src="/app_themes/ftuan/images/yl.gif" />每邀请一位好友首次购买，您将获<b class="text5">¥10元</b><b class="f14">M</b> 币!</li>
				<li class="index_r_three_bot">&gt;&gt;&nbsp; <a href='/Shared/invite.aspx' >点击获取您的专用邀请链接</a></li>
			</ul>
		</div>
		<!--邀请有礼 结束-->
		</div>
</div>
 <input type="hidden" id="pid" value='<%# Eval("ProductID") %>'>
 <input type="hidden" id="pname" value='<%# Eval("ProductName") %>'>
            </ItemTemplate>
        </asp:TemplateField>
    </Fields>

</asp:DetailsView>

<!--第一部分结束-->
<div class="blank25"></div>
<div class="main2">
	<div class="main_l">
		<div class="l_top"></div>
		<div class="l_area3">
			<h5>讨论区</h5>
			<div class="line1"></div>
            <pan:SmartGridView runat="server" ID="SinProQuestList" AllowPaging="True" 
                AutoGenerateColumns="False" DataSourceID="ObjectDataSource1" >
                <Columns>
                    <asp:TemplateField>
                        <ItemTemplate>
						    <div class="index_three">
				                <ul>
					                <li class="index_three_h4"><b class="text5"><%# Eval("Nickname")%></b>　发表于  <%# Eval("CreateOn") %></li>
					                <li class="index_three_cont"><%# Eval("Body") %></li>
				                </ul>
		            			<ul>
					                <%# string.IsNullOrEmpty(Eval("Reply").ToString())? "":Eval("Reply","<li class='index_three_bot'>5151团回复：{0}</li>") %>
				                </ul>
							</div>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </pan:SmartGridView>
		 <div class="line1"></div>
		<!--我要评论开始-->
			<dl class="mycom" id="ct">
				<dt id="userlogin">
				<asp:LoginView ID="lgvPanle" runat="server">
				    <AnonymousTemplate>
				     <span>Email：<input id="uname" runat="server" type="text" class="index_input4" />　
                          密码：<input id="upass" runat="server" type="password" class="index_input4" />
                                <input name="sub" type="submit" class="index_but1" value="登录"  onclick="return comment_login()"  runat="server" onserverclick="login_Click" />
                        <a  href="/shared/register.aspx?ReturnUrl=<%= Request.Url.ToString()%>" class="text6">注册</a>
                    </span>
				    </AnonymousTemplate>
				    <LoggedInTemplate>
				        <span>用户名：<em><%= User.Identity.Name %></em></span>
				    </LoggedInTemplate>
				</asp:LoginView>
                </dt>
				<dd>
					<p><textarea id="status" class="index_input3on inputbor" name="" cols="" rows="" onclick="this.className='index_input3 inputbor'"></textarea></p>
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <input type="hidden" id="sid" value="">
                            <input type="hidden" id="username" value='<%= User.Identity.Name %>'>
                                <!--<td width="117" align="left" valign="middle">验证码：<input id="code" maxlength="4" type="text" class="index_input4" /></td>
                                <td width="88" align="left" valign="middle"><img id="imagesecode" src="/stores/session" /></td>
                                <td width="373" align="left" valign="middle">请填写图中文字(不区分大小写，看不清，<font class="text6"><a style="cursor:pointer" onClick="DoFresh();return false;">换一个</a></font>)</td>  -->
                        </tr>
                    </table>
					<p class="mycom_but"><em><input name="btnSubmit" id="btnSubmit" type="button" class="index_but4" value="提交问题" onclick="show_pinglun()" /></em><em>我们的客服人员将尽快回答您的问题</em></p>
					<!--<p><input name="" type="button" class="index_but4" value="发表评论" onclick="show_pinglun()" /></p>-->
			    </dd>
			</dl>
			<!--我要评论结束-->
		</div>
		<div class="l_bot"></div>
	</div>

	<DIV class="go-top"><A href="#uptop">↑顶部</A></DIV>
</div>
<!--主体部分结束-->
</asp:Content>

